<!--[* $Id: postcalendar_event_submit.htm 615 2010-06-22 18:26:18Z craigh $ *]-->
<!--[include file="admin/postcalendar_admin_menu.htm"]-->

<!--[pnmodgetvar module="PostCalendar" name="pcAllowUserCalendar" assign="pcAllowUserCalendar"]-->
<!--[pnmodgetvar module="PostCalendar" name="enablecategorization" assign="enablecats"]-->
<!--[pnmodgetvar module="PostCalendar" name="pcTime24Hours" assign="24HOUR_TIME"]-->
<!--[pnmodgetvar module="PostCalendar" name="pcTimeIncrement" assign="minute_interval"]-->
<div class="z-admincontainer">
<div class="z-adminpageicon"><!--[pnimg modname='PostCalendar' src='admin.png']--></div>
<h2 style='border-bottom:1px solid #CCCCCC;text-align:left;padding-top:1em;'><!--[gt text='Create Event Default Values']--></h2>
<form class="z-form" action="<!--[pnmodurl modname="PostCalendar" type="admin" func="seteventdefaults"]-->" method="post" enctype="application/x-www-form-urlencoded">
<div>
	<input type="hidden" name="authid" value="<!--[pnsecgenauthkey module="PostCalendar"]-->" />
    <fieldset>
        <legend><!--[gt text='General']--></legend>
        <div class="z-formrow">
            <label for="postcalendar_eventdefaults_sharing"><!--[gt text='Sharing']--></label>
            <!--[if $pcAllowUserCalendar]-->
                <span><!--[html_options name="postcalendar_eventdefaults[sharing]" id="postcalendar_eventdefaults_sharing" options=$sharingselect selected=$postcalendar_eventdefaults.sharing]--></span>
            <!--[else]-->
                <span id="postcalendar_eventdefaults_sharing"><i><!--[gt text='Global']--></i><input type="hidden" name="postcalendar_eventdefaults[sharing]" value="3" /></span>
            <!--[/if]-->
        </div>

        <div class="z-formrow">
            <label for="postcalendar_eventdefaults_eventtype"><!--[gt text='Event Type']--></label>
            <span id="postcalendar_eventdefaults_eventtype">
                <input type="radio" name="postcalendar_eventdefaults[alldayevent]" id="postcalendar_eventdefaults_alldayevent1" value="1"<!--[$Selected.allday]--> />
                <label for="postcalendar_eventdefaults_alldayevent1"><!--[gt text='All-day event']--></label><br />
                <input type="radio" name="postcalendar_eventdefaults[alldayevent]" id="postcalendar_eventdefaults_alldayevent0" value="0"<!--[$Selected.timed]--> />
                <label for="postcalendar_eventdefaults_alldayevent0"><!--[gt text='Timed event']--></label>
            </span>
        </div>
        <div class="z-formrow">
            <label for="postcalendar_eventdefaults_startTime"><!--[gt text='Start Time']--></label>
            <span id="postcalendar_eventdefaults_startTime"><!--[html_select_time time=`$postcalendar_eventdefaults.startTime` display_seconds=false use_24_hours=$24HOUR_TIME minute_interval=$minute_interval field_array="postcalendar_eventdefaults[startTime]" prefix=""]--></span>
        </div>
        <div class="z-formrow">
            <label for="postcalendar_eventdefaults_endTime"><!--[gt text='End Time']--></label>
            <span id="postcalendar_eventdefaults_endTime"><!--[html_select_time time=`$postcalendar_eventdefaults.endTime` display_seconds=false use_24_hours=$24HOUR_TIME minute_interval=$minute_interval field_array="postcalendar_eventdefaults[endTime]" prefix=""]--></span>
        </div>

        <div class="z-formrow">
            <label for="postcalendar_eventdefaults_fee"><!--[gt text='Fee']--></label>
            <input style='margin-left: 1em;' type="text" name="postcalendar_eventdefaults[fee]" id="postcalendar_eventdefaults_fee" value="<!--[ $postcalendar_eventdefaults.fee ]-->" />
        </div>

        <!--[if $enablecats]-->
		<div class="z-formrow">
			<label for="postcalendar_eventdefaults_categories__<!--[$firstprop]-->_"><!--[gt text='Default categories']--></label>
               <!--[gt text="No Default Category" assign="allText"]-->
               <!--[nocache]-->
               <span><!--[foreach from=$catregistry key=property item=category]-->
                   <!--[array_field_isset assign="selectedValue" array=$selectedDefaultCategories field=$property returnValue=1]-->
                   <!--[selector_category 
                   editLink=true 
                   category=$category 
                   name="postcalendar_eventdefaults[categories][$property]" 
                   field="id" 
                   selectedValue=$selectedValue 
                   defaultValue="0"
                   all=1
                   allText=$allText
                   allValue=0]-->
               <!--[/foreach]--></span>
               <!--[/nocache]-->
        </div>
        <!--[/if]-->
    </fieldset>

    <fieldset>
        <legend><!--[gt text='Location']--></legend>
		<div class="z-formrow">
            <!--[pc_locations admin=1]-->
        </div>
		<div class="z-formrow">
            <label for="postcalendar_eventdefaults_location_event_location"><!--[gt text='Name']--></label>
            <input type="text" name="postcalendar_eventdefaults[location][event_location]" id="postcalendar_eventdefaults_location_event_location" value="<!--[ $postcalendar_eventdefaults.location.event_location ]-->" />
        </div>
		<div class="z-formrow">
            <label for="postcalendar_eventdefaults_location_event_street1"><!--[gt text='Street']--></label>
            <input type="text" name="postcalendar_eventdefaults[location][event_street1]" id="postcalendar_eventdefaults_location_event_street1" value="<!--[ $postcalendar_eventdefaults.location.event_street1 ]-->" />
        </div>
		<div class="z-formrow">
            <label for="postcalendar_eventdefaults_location_event_street1"><!--[gt text='Street Line 2']--></label>
            <input type="text" name="postcalendar_eventdefaults[location][event_street2]" id="postcalendar_eventdefaults_location_event_street2" value="<!--[ $postcalendar_eventdefaults.location.event_street2 ]-->" />
        </div>
		<div class="z-formrow">
            <label for="postcalendar_eventdefaults_location_event_city"><!--[gt text='City']--></label>
            <input type="text" name="postcalendar_eventdefaults[location][event_city]" id="postcalendar_eventdefaults_location_event_city" value="<!--[ $postcalendar_eventdefaults.location.event_city ]-->" />
        </div>
		<div class="z-formrow">
            <label for="postcalendar_eventdefaults_location_event_state"><!--[gt text='State']--></label>
            <input type="text" name="postcalendar_eventdefaults[location][event_state]" id="postcalendar_eventdefaults_location_event_state" value="<!--[ $postcalendar_eventdefaults.location.event_state ]-->" />
        </div>
		<div class="z-formrow">
            <label for="postcalendar_eventdefaults_location_event_postal"><!--[gt text='Zipcode']--></label>
            <input type="text" name="postcalendar_eventdefaults[location][event_postal]" id="postcalendar_eventdefaults_location_event_postal" value="<!--[ $postcalendar_eventdefaults.location.event_postal ]-->" />
        </div>
    </fieldset>
    <fieldset>
        <legend><!--[gt text='Contact']--></legend>
		<div class="z-formrow">
            <label for="postcalendar_eventdefaults_contname"><!--[gt text='Name']--></label>
            <input type="text" name="postcalendar_eventdefaults[contname]" id="postcalendar_eventdefaults_contname" value="<!--[ $postcalendar_eventdefaults.contname ]-->" />
        </div>
		<div class="z-formrow">
            <label for="postcalendar_eventdefaults_conttel"><!--[gt text='Phone number']--></label>
            <input type="text" name="postcalendar_eventdefaults[conttel]" id="postcalendar_eventdefaults_conttel" value="<!--[ $postcalendar_eventdefaults.conttel ]-->" />
        </div>
		<div class="z-formrow">
            <label for="postcalendar_eventdefaults_contemail"><!--[gt text='E-mail address']--></label>
            <input type="text" name="postcalendar_eventdefaults[contemail]" id="postcalendar_eventdefaults_contemail" value="<!--[ $postcalendar_eventdefaults.contemail ]-->" />
        </div>
		<div class="z-formrow">
            <label for="postcalendar_eventdefaults_website"><!--[gt text='Web site']--></label>
            <input type="text" name="postcalendar_eventdefaults[website]" id="postcalendar_eventdefaults_website" value="<!--[ $postcalendar_eventdefaults.website ]-->" />
        </div>
    </fieldset>
</div>

<div class="z-buttons z-formbuttons">
    <!--[pnbutton src="button_ok.gif" set="icons/extrasmall" __alt="Save" __title="Save" __text="Save"]-->
    <a href="<!--[pnmodurl modname="PostCalendar" type="admin"]-->" title="<!--[gt text="Cancel"]-->"><!--[pnimg modname=core src="button_cancel.gif" set="icons/extrasmall" __alt="Cancel" __title="Cancel"]--> <!--[gt text="Cancel"]--></a>
</div>

</form>
</div> <!-- /z-admincontainer container-->
